<!-- 工单处理 -->

<template>
  <div>
    <FormInput label="处理方式" bind="operate" third disabled />

    <FormTextarea label="处理意见" bind="opinion" :max="100" required />

    <FormImage label="上传图片" bind="image" folder="repair" :limit="3" />

    <FormSlot :label="`关联${CORE.MAP.ASSET}`">
      <MyDevice />
    </FormSlot>

    <FormSlot label="使用备品">
      <BtnPrimary title="选择" @click="backup_openEdit" />
    </FormSlot>

    <MyBackup v-if="one.repair.workOrderPreAssetDto.length" class="marginBottom" />
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyProcess',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb('deal'), CORE.mixWeb('backup', 'backup_')],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(require.context('./', true, /vue$/)),
}
</script>
